<template>
	<view class="empty-view" :style="emptyViewStyle">
		<image src="@/static/images/empty-ioc.png" class="ioc"></image>
		<!-- 暂无数据 -->
		<text class="empty-text">{{i18n_t('暂无数据')}}</text>
	</view>
</template>

<script>
	export default {
		name: "empty",
		props: {
			top: {
				type: String,
				default: "0rpx"
			},
			bottom: {
				type: String,
				default: "0rpx"
			}
		},
		computed: {
			emptyViewStyle: function() {
				return {
					paddingTop: this.top,
					paddingBottom: this.bottom,
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.empty-view {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		opacity: .6;

		.ioc {
			width: 260rpx;
			height: 260rpx;
		}

		.empty-text {
			font-size: 22rpx;
			color: #bdbdbd;
			letter-spacing: 6rpx;
			padding-left: 3rpx;
		}

	}
</style>
